const modules = import.meta.glob('./*.js', { eager: true });
const stores = {};

for (const path in modules) {
  const filename = path.replace(/^\.\/(.*)\.js$/, '$1');
  if (filename === 'index') continue;
  stores[filename] = modules[path].default();
}

export default stores;
